summaryrefslogtreecommitdiff
path: root/src/variable.h
blob: 3df92554d52f2800a55e15ce26f8fc6d5955a26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef VARIABLE_H
#define VARIABLE_H

#include <stdint.h>

#include <bu/string.h>

class Variable
{
public:
	enum Type
	{
		Undef,
		Int,
		Float,
		Bool,
		String
	};

public:
	Variable();
	virtual ~Variable();

private:
	Type eType;
	bool bNull;

	union
	{
		int64_t iValue;
		double fValue;
		bool bValue;
		Bu::String *sValue;
	};
};

#endif